package com.woniuxy.microsysserver.feign;

import com.woniuxy.microsysserver.feignfullback.GoldFullBackFactary;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

//黄金接口
@FeignClient(value = "cd-finance-micro-gold-service", fallbackFactory = GoldFullBackFactary.class)
public interface GoldFeign {
    @GetMapping(value = "/goldOrder/earnings", produces = MediaType.APPLICATION_JSON_VALUE)
    String selectIdByName (@RequestParam(value = "userName") String userName);
}
